//
//  Student.m
//  数据访问对象模式
//
//  Created by flannery on 2018/12/18.
//  Copyright © 2018年 flannery. All rights reserved.
//

#import "Student.h"
@interface Student()
@end

@implementation Student
- (instancetype)initWithName:(NSString*)name rollNo:(int)rollNo
{
    self = [super init];
    if (self) {
        self.name = name;
        self.rollNo = rollNo;
    }
    return self;
}

- (NSString *)description
{
    return [NSString stringWithFormat:@"Student: [RollNo : %d , Name : %@]", self.rollNo, self.name];
}
@end
